package org.dxy.domain.event.route;

import org.dxy.domain.event.AggregateTypeEnum;
import org.dxy.domain.event.DomainEvent;

/**
 * @description: 工艺路线步骤已添加事件
 * @author: dxy
 * @createTime: 2025/6/26 10:30
 */
public record RouteStepAddedEvent(
    /**
     * 工艺路线ID
     */
    Long routeId,
    
    /**
     * 工艺步骤ID
     */
    Long stepId
) implements DomainEvent {
    
    @Override
    public Long aggregateId() {
        return routeId;
    }
    
    @Override
    public String aggregateType() {
        return AggregateTypeEnum.ROUTE.getKey();
    }
    
    @Override
    public String eventType() {
        return RouteEventTypeEnum.STEP_ADDED.getKey();
    }
} 